<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: parserProgram.ParserProgram Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classparser_program_1_1_parser_program.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pac-static-attribs">Static Package Attributes</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">parserProgram.ParserProgram Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class is responsible of the parsing of input string, and stack parsing creation.  
 <a href="classparser_program_1_1_parser_program.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for parserProgram.ParserProgram:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classparser_program_1_1_parser_program__coll__graph.png" border="0" usemap="#parser_program_8_parser_program_coll__map" alt="Collaboration graph"/></div>
<map name="parser_program_8_parser_program_coll__map" id="parser_program_8_parser_program_coll__map">
<area shape="rect" id="node2" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html" title="Grammar Interface." alt="" coords="5,147,211,386"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classparser_program_1_1_parser_program-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a75809e27c5f5fd3b28863c17024c78a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75809e27c5f5fd3b28863c17024c78a6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ParserProgram</b> (String in)</td></tr>
<tr class="memitem:a00bd1a89b976e04b3e3ed022093a3664"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a00bd1a89b976e04b3e3ed022093a3664"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ParserProgram</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> g, Hashtable&lt; String, List&lt; String &gt;&gt; action, Hashtable&lt; String, List&lt; String &gt;&gt; goTo)</td></tr>
<tr class="memitem:a85c97b5518ccedd3cfeae357e8ed28e2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85c97b5518ccedd3cfeae357e8ed28e2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setActionTable</b> (Hashtable&lt; String, List&lt; String &gt;&gt; actionTable)</td></tr>
<tr class="memitem:a157523a0c4a59471b6194e5868840b7f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a157523a0c4a59471b6194e5868840b7f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGotoTable</b> (Hashtable&lt; String, List&lt; String &gt;&gt; gotoTable)</td></tr>
<tr class="memitem:a89685a1ddaa7fe03516ab89efeffa1bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a89685a1ddaa7fe03516ab89efeffa1bf"></a>
Stack&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getStack</b> ()</td></tr>
<tr class="memitem:aeae5ec3cce4e823ada43a40403a84edd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeae5ec3cce4e823ada43a40403a84edd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setStack</b> (Stack&lt; String &gt; stack)</td></tr>
<tr class="memitem:af5f3b504a20607ba94a8e3a1cb7e39b4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5f3b504a20607ba94a8e3a1cb7e39b4"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>getInput</b> ()</td></tr>
<tr class="memitem:a5db0b2d0b34c93fcd9cb06e0f3a75fbf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5db0b2d0b34c93fcd9cb06e0f3a75fbf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setInput</b> (String input)</td></tr>
<tr class="memitem:a27f0e5e4b6be9950dc586832f7d20fc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27f0e5e4b6be9950dc586832f7d20fc8"></a>
<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getGrammar</b> ()</td></tr>
<tr class="memitem:a8174d65b7fd5e3aca2dbe48ec1582700"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8174d65b7fd5e3aca2dbe48ec1582700"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGrammar</b> (<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> grammar)</td></tr>
<tr class="memitem:ade596abd5eb6e01c6be4e9da8d71b39d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade596abd5eb6e01c6be4e9da8d71b39d"></a>
List&lt; <a class="el" href="classparser_program_1_1_history_element.html">HistoryElement</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getHistory</b> ()</td></tr>
<tr class="memitem:ac8e01a54887a9c9f0a9d277d5cbb0c61"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumparser_program_1_1_r_e_s_u_l_t.html">RESULT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classparser_program_1_1_parser_program.html#ac8e01a54887a9c9f0a9d277d5cbb0c61">parse</a> ()  throws InterruptedException</td></tr>
<tr class="memdesc:ac8e01a54887a9c9f0a9d277d5cbb0c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">The leading method of the class, responsible of the parsing of input string and consequent stack parsing and history creation.  <a href="#ac8e01a54887a9c9f0a9d277d5cbb0c61"></a><br/></td></tr>
<tr class="memitem:a8a5d6d764dffb841c4eb2e0ba7e8a831"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a5d6d764dffb841c4eb2e0ba7e8a831"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getT</b> ()</td></tr>
<tr class="memitem:a2069ee9c4e2c9e5b842e6480ceda50e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2069ee9c4e2c9e5b842e6480ceda50e8"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getV</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pac-static-attribs"></a>
Static Package Attributes</h2></td></tr>
<tr class="memitem:a345c2f7b22b455b824b68058e2dc1a83"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a345c2f7b22b455b824b68058e2dc1a83"></a>
static Logger&#160;</td><td class="memItemRight" valign="bottom"><b>logger</b> = Logger.getLogger(ParserProgram.class.getName())</td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:ad3661a982707613bf19207e8a8dea111"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad3661a982707613bf19207e8a8dea111"></a>
static String&#160;</td><td class="memItemRight" valign="bottom"><b>replaceLast</b> (String text, String regex, String replacement)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a2058f2a99c2704e6dd31bb9c0b19c085"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2058f2a99c2704e6dd31bb9c0b19c085"></a>
Stack&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>stack</b></td></tr>
<tr class="memitem:a2ab3901075f4c939b8f81eeb396eabed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ab3901075f4c939b8f81eeb396eabed"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>simbol</b></td></tr>
<tr class="memitem:a316d94b7fa9f2299a0afc1bfd8eff026"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a316d94b7fa9f2299a0afc1bfd8eff026"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>input</b></td></tr>
<tr class="memitem:a4254fc1216b4026ee88821603ad218d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4254fc1216b4026ee88821603ad218d3"></a>
<a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><b>grammar</b></td></tr>
<tr class="memitem:af067e8fa30e30d425f2177c512fa4248"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af067e8fa30e30d425f2177c512fa4248"></a>
List&lt; <a class="el" href="classparser_program_1_1_history_element.html">HistoryElement</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>history</b></td></tr>
<tr class="memitem:a2dec179401edcc43f84d128188180593"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2dec179401edcc43f84d128188180593"></a>
Hashtable&lt; String, List&lt; String &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>actionTable</b></td></tr>
<tr class="memitem:aebaaa2fbe8f4324d697192b8c976c60e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aebaaa2fbe8f4324d697192b8c976c60e"></a>
Hashtable&lt; String, List&lt; String &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>gotoTable</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class is responsible of the parsing of input string, and stack parsing creation. </p>
<p>It also save the parsing chronology. It use a Grammar and its Action and Goto table. All this operation are executed with <a class="el" href="classparser_program_1_1_parser_program.html#ac8e01a54887a9c9f0a9d277d5cbb0c61" title="The leading method of the class, responsible of the parsing of input string and consequent stack pars...">parse()</a> method. </p>
<dl class="section author"><dt>Author:</dt><dd>Paolo Pino </dd></dl>

<p>Definition at line <a class="el" href="_parser_program_8java_source.html#l00026">26</a> of file <a class="el" href="_parser_program_8java_source.html">ParserProgram.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac8e01a54887a9c9f0a9d277d5cbb0c61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumparser_program_1_1_r_e_s_u_l_t.html">RESULT</a> <a class="el" href="classparser_program_1_1_parser_program.html#ac8e01a54887a9c9f0a9d277d5cbb0c61">parserProgram.ParserProgram.parse</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws InterruptedException</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The leading method of the class, responsible of the parsing of input string and consequent stack parsing and history creation. </p>
<dl class="section return"><dt>Returns:</dt><dd>RESULT.ACCEPT if the string has been accepted, RESULT.ERROR if not, RESULT.INVALID_ID if the input string is invalid </dd></dl>
<dl class="exception"><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname">InterruptedException</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_parser_program_8java_source.html#l00113">113</a> of file <a class="el" href="_parser_program_8java_source.html">ParserProgram.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/parserProgram/<a class="el" href="_parser_program_8java_source.html">ParserProgram.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceparser_program.html">parserProgram</a>      </li>
      <li class="navelem"><a class="el" href="classparser_program_1_1_parser_program.html">ParserProgram</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:29 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
